package com.tudouji.project.customer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tudouji.project.customer.mapper.CashflowMapper;
import com.tudouji.project.customer.domain.Cashflow;
import com.tudouji.project.customer.service.ICashflowService;

/**
 * 账户余额流水Service业务层处理
 * 
 * @author tudouji
 * @date 2022-05-19
 */
@Service
public class CashflowServiceImpl implements ICashflowService 
{
    @Autowired
    private CashflowMapper cashflowMapper;

    /**
     * 查询账户余额流水
     * 
     * @param guid 账户余额流水ID
     * @return 账户余额流水
     */
    @Override
    public Cashflow selectCashflowById(String guid)
    {
        return cashflowMapper.selectCashflowById(guid);
    }

    /**
     * 查询账户余额流水列表
     * 
     * @param cashflow 账户余额流水
     * @return 账户余额流水
     */
    @Override
    public List<Cashflow> selectCashflowList(Cashflow cashflow)
    {
        return cashflowMapper.selectCashflowList(cashflow);
    }

    /**
     * 新增账户余额流水
     * 
     * @param cashflow 账户余额流水
     * @return 结果
     */
    @Override
    public int insertCashflow(Cashflow cashflow)
    {
        return cashflowMapper.insertCashflow(cashflow);
    }

    /**
     * 修改账户余额流水
     * 
     * @param cashflow 账户余额流水
     * @return 结果
     */
    @Override
    public int updateCashflow(Cashflow cashflow)
    {
        return cashflowMapper.updateCashflow(cashflow);
    }

    /**
     * 批量删除账户余额流水
     * 
     * @param guids 需要删除的账户余额流水ID
     * @return 结果
     */
    @Override
    public int deleteCashflowByIds(String[] guids)
    {
        return cashflowMapper.deleteCashflowByIds(guids);
    }

    /**
     * 删除账户余额流水信息
     * 
     * @param guid 账户余额流水ID
     * @return 结果
     */
    @Override
    public int deleteCashflowById(String guid)
    {
        return cashflowMapper.deleteCashflowById(guid);
    }
}
